package com.zhaolin.utils;

import org.springframework.util.DigestUtils;

public class MD5Utils {

    //盐
    private static  final String sait = "Survey###$$@@";

    public static  String getMD5(String password){
        String val = password+"!@#"+sait;
        //Spring算法加密类
        return DigestUtils.md5DigestAsHex(val.getBytes());
    }

    public static void main(String[] args) {
        String md5 = getMD5("123456789"+"");
        System.out.println(md5);
    }
}
